package com.hehe.util;

import com.hehe.entity.User;

import javax.servlet.http.HttpSession;

public class IsUserLogin {
    private  HttpSession session;
    public IsUserLogin(HttpSession session) {
        this.session = session;
    }

    public String IsLogin(){

        User user  =(User) session.getAttribute("user");
        if(user==null){
            return "no";
        } else return "yes";

    }

}
